<!doctype html>
<head>
  <title>天猪部落阁</title>
  <script>
    var pathList = location.pathname.replace(/^\//, '').split('/');
    var labels = null;
    var id = null;
    if(pathList.length >= 1){
      if(/\d+/.test(pathList[pathList.length-1])){
        id = pathList.pop();
      }
      labels = pathList.join(',');
    }
    var base = 'https://github.com/atian25/blog';
    var url =  base + (id ? '/issues/' + id : (labels ? '?labels=' + labels : '') );
    //console.log(url);
    location.replace(url);
  </script>
</head>
